package cn.bytepath.org.service;

import cn.bytepath.base.service.BaseService;
import cn.bytepath.org.domain.Employee;
import cn.bytepath.org.domain.Shop;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestBody;

import javax.mail.MessagingException;

/**
 * 商户的业务层接口
 * @author Jack.C
 * @createDate 2022-02-10
 * @version 1.0
 */
public interface IShopService extends BaseService<Shop> {

    /**
     * 商户入驻时调用的方法,保存商户信息(分别保存至shop表和employee表)
     * @param shop 页面传过来的商户信息
     * @update 2022/2/10
     */
    void settlement(Shop shop);

    /**
     * 根据id禁用商户
     * @param id 商户id
     * @update 2022/2/11
     */
    void forbid(Long id);

    /**
     * 根据id启用商户
     * @param shop 商户对象
     * @update 2022/2/11
     */
    void permit(Shop shop) throws Exception;

    /**
     * 根据id驳回商户入驻请求
     * @param shop 商户对象
     * @update 2022/2/12
     */
    void auditBack(Shop shop) throws Exception;
}
